var express = require('express');
var router = express.Router();
const loginInfo = require('../handler/logins/login.js')
const members = require('../handler/members/index.js')
const users = require('../handler/users/index.js')

/* GET users listing. */
router.all('/*', loginInfo.verifyToken, loginInfo.verifyOldToken, loginInfo.verifyPayload, loginInfo.isCreateNewToken);


router.post('/members/add', members.addMember);

// 查询会员信息
router.get('/members/search', members.searchMember);

// 删除会员信息
router.post('/members/delete', members.deleteMember);

// 修改会员信息
router.put('/members/modify', members.modifyMember);

// 新增用户
router.post('/users-member/add', users.addUser);

// 查询用户

router.get('/users-member/search', users.searchUser);

module.exports = router;
